$(document).ready(function() {
	//Selectors
	var FILTER_FORM = $("#filter-form");
	var FILTER = $('#filter');
	var GROUP = $('#group');

	FILTER.change(function() {
		filterUsers();
	});

	function filterUsers() {
		FILTER_FORM.submit();

		/*$.ajax({
			type: 'POST',
			url: '#',
			data: {'filter-string': FILTER.val(),
					'filter-group': GROUP.val()},
			dataType: 'html',
			success: ajaxSuccess,
			error: ajaxError
		});*/
	}

	function ajaxSuccess() {
		console.log("success");
	}

	function ajaxError() {
		console.log("error");
	}
});